function get(u) {
	var x=new XMLHttpRequest();x.open("GET",u,false); x.send(null);return x.responseText;
}
function post(u,d,cb) {
	var x=new XMLHttpRequest(); x.onreadystatechange=function() {
		if (x.readyState==4 && x.status==200) cb||alert(x.responseText);
	}
	x.open("POST",u,true);
	x.send(d);
}
function $e(id){ return document.getElementById(id) }
function $v(id){ return $e(id).value }
function $i(id, ht){ $e(id).innerHTML = ht }
function $iplus(id, ht){ $e(id).innerHTML += ht }
function $sty(id){ return $e(id).style }
function toggle(id){$sty(id).display = ($sty(id).display == 'none') ? '':'none' }

String.prototype.f = function(){var f=this,r=arguments;for(a in r){f=f.replace("{}",r[a])}; return f}
